using System.Threading.Tasks;

namespace Project.API.Application.Queries
{
    public interface IProjectQuery
    {
        /// <summary>
        /// 获取项目列表
        /// </summary>
        /// <param name="userId">用户ID</param>
        /// <returns></returns>
        Task<dynamic> GetProjectsByUserIdAsync(int userId);

        /// <summary>
        /// 获取项目明细
        /// </summary>      
        /// <param name="projectId">项目Id</param>
        /// <returns></returns>
        Task<dynamic> GetProjectDetailAsync(int projectId);
        
        /// <summary>
        /// 获取我的项目明细
        /// </summary>
        /// <param name="projectId"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        Task<dynamic> GetMyProjectDetailAsync(int projectId,int userId);
    }
}